package com.ruoyi.bookstore.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 规则对象 rules
 * 
 * @author ruoyi
 * @date 2022-07-20
 */
public class Rules extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 限制借阅数量 */
    @Excel(name = "限制借阅数量")
    private Long borrowNum;

    /** 限制借阅天数 */
    @Excel(name = "限制借阅天数")
    private Long limitDay;

    /** 借阅书店 */
    @Excel(name = "借阅书店")
    private String borrowLibrary;

    /** 图书超期每天费用 */
    @Excel(name = "图书超期每天费用")
    private BigDecimal overtimeFee;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setBorrowNum(Long borrowNum) 
    {
        this.borrowNum = borrowNum;
    }

    public Long getBorrowNum() 
    {
        return borrowNum;
    }
    public void setLimitDay(Long limitDay) 
    {
        this.limitDay = limitDay;
    }

    public Long getLimitDay() 
    {
        return limitDay;
    }
    public void setBorrowLibrary(String borrowLibrary) 
    {
        this.borrowLibrary = borrowLibrary;
    }

    public String getBorrowLibrary() 
    {
        return borrowLibrary;
    }
    public void setOvertimeFee(BigDecimal overtimeFee) 
    {
        this.overtimeFee = overtimeFee;
    }

    public BigDecimal getOvertimeFee() 
    {
        return overtimeFee;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("borrowNum", getBorrowNum())
            .append("limitDay", getLimitDay())
            .append("borrowLibrary", getBorrowLibrary())
            .append("overtimeFee", getOvertimeFee())
            .toString();
    }
}
